package com.sale.succ.system.txt;

import java.io.File;
import java.io.FilenameFilter;

public class FilterExtention implements FilenameFilter {
	private String ext;
	
	public FilterExtention(String ext) {
		this.ext = "." + ext;
	}
	
	public boolean accept(File dir, String name) {
		return name.endsWith(ext);
	}
}